package com.chen.controller;

import com.chen.entity.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class IndexController {
    @GetMapping("/index")
    public Result index(){
        return Result.success("成功访问到后端");
    }
}
